<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">级别:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[level]', $levelMap,$row.level)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" class="form-control" name="row[code]" type="text" value="{$row.code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">省份编号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province" class="form-control" name="row[province]" type="text" value="{$row.province|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">城市编号:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value="{$row.city|htmlentities}"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">区县编号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-district" class="form-control" name="row[district]" type="text" value="{$row.district|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">省份名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province_name" class="form-control" name="row[province_name]" type="text" value="{$row.province_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">城市名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city_name" class="form-control" name="row[city_name]" type="text" value="{$row.city_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">区、县名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-district_name" class="form-control" name="row[district_name]" type="text" value="{$row.district_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">省份简称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province_short_name" class="form-control" name="row[province_short_name]" type="text" value="{$row.province_short_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">城市简称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city_short_name" class="form-control" name="row[city_short_name]" type="text" value="{$row.city_short_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">区、县简称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-district_short_name" class="form-control" name="row[district_short_name]" type="text" value="{$row.district_short_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">拼音:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pinyin" class="form-control" name="row[pinyin]" type="text" value="{$row.pinyin|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">音调:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pinyin_tone" class="form-control" name="row[pinyin_tone]" type="text" value="{$row.pinyin_tone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">省份首字母:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province_initial_letter" class="form-control" name="row[province_initial_letter]" type="text" value="{$row.province_initial_letter|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">城市首字母:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city_initial_letter" class="form-control" name="row[city_initial_letter]" type="text" value="{$row.city_initial_letter|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">县区首字母:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-district_initial_letter" class="form-control" name="row[district_initial_letter]" type="text" value="{$row.district_initial_letter|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">字母:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-letter" class="form-control" name="row[letter]" type="text" value="{$row.letter|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">省份拼音:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province_pinyin" class="form-control" name="row[province_pinyin]" type="text" value="{$row.province_pinyin|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">城市拼音:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city_pinyin" class="form-control" name="row[city_pinyin]" type="text" value="{$row.city_pinyin|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">县区拼音:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-district_pinyin" class="form-control" name="row[district_pinyin]" type="text" value="{$row.district_pinyin|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
